import 'package:flutter/material.dart';
import 'package:color_block_downloader_flutter/ui/widgets/control_panel.dart';
import 'package:color_block_downloader_flutter/ui/widgets/info_panel.dart';
import 'package:color_block_downloader_flutter/ui/widgets/preview_panel.dart';

/// 桌面端主体
class DesktopBody extends StatelessWidget {
  const DesktopBody({super.key});

  @override
  Widget build(BuildContext context) {
    return const Row(
      children: [
        // 控制面板
        Expanded(flex: 1, child: ControlPanel()),
        // 预览和信息面板
        Expanded(
          flex: 1,
          child: Column(
            children: [
              // 预览面板
              Expanded(flex: 2, child: PreviewPanel()),
              // 信息面板
              Expanded(flex: 1, child: InfoPanel()),
            ],
          ),
        ),
      ],
    );
  }
}
